#if !defined(AFX_MODULECONFDLG_H__E775ABE1_D84D_4EFE_A93A_8FC370BF35EA__INCLUDED_)
#define AFX_MODULECONFDLG_H__E775ABE1_D84D_4EFE_A93A_8FC370BF35EA__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ModuleConfDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CModuleConfDlg dialog

class CModuleConfDlg : public CDialog
{
// Construction
public:
	CModuleConfDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CModuleConfDlg)
	enum { IDD = IDD_MODULE_CONF_DLG };
	CListCtrl	m_listModule;
	CString	m_moduleMemo;
	CString	m_moduleName;
	CString	m_moduleProducer;
	int		m_moduleType;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CModuleConfDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

private:
	_variant_t m_vmoduleType,m_vmoduleName,m_vmoduleProducer,m_vmoduleMemo;
	_RecordsetPtr m_pRecordset;
	
	BOOL m_bSuccess;
	int m_nCurrentSel;
	
	int CheckValid();
	void SetBtnState();
	void LoadData();
	void SaveData();
// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CModuleConfDlg)
	afx_msg void OnBtnAdd();
	afx_msg void OnBtnDelete();
	afx_msg void OnBtnModify();
	virtual BOOL OnInitDialog();
	afx_msg void OnItemchangedListModule(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnClose();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MODULECONFDLG_H__E775ABE1_D84D_4EFE_A93A_8FC370BF35EA__INCLUDED_)
